package in.freshstart.java.training.conditions;

public class RightAngleTriangleCheck {
	public static void main(String[] args) {
		int a = 5, b = 4, c = 9;
		if ((a + b > c && b + c > a && c + a > b)
				&& ((a * a) + (b * b) == (c * c)
						|| (b * b) + (c * c) == (a * a) || (c * c) + (a * a) == (b * b)))
			System.out.println("Right angle trinagle");
		else
			System.out.println("Not a Right angle triangle");
	}

}
